<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="cn.rjtraining.util.DbUtil"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>添加学生信息</title>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
		<LINK HREF="../theme/eduMS.css" REL="stylesheet" TYPE="text/css">
		<script type="text/javascript" src="../js/calendar.js">
</script>
	</head>

	<body>
		<center>
			<form action="StudentAdd" method="get">
				<TABLE CLASS="tableEdit" BORDER="0" CELLSPACING="1" CELLPADDING="0">
					<TBODY>
						<TR>
							<!-- 这里是添加、编辑界面的标题 -->
							<TD ALIGN="center" CLASS="tdEditTitle">
								添加学生信息
							</TD>
						</TR>
						<TR>
							<TD>
								<!-- 主输入域开始 -->
								<TABLE CLASS="tableEdit" CELLSPACING="0" BORDER="0"
									CELLPADDING="0">
									<tr>
										<td CLASS="tdEditLabel">
											学&nbsp;&nbsp;号：
										</td>
										<td CLASS="tdEditContent">
											<input type="text" style="width: 80px;" />
											<label style="color: red;">
												*
											</label>
											带
											<label style="color: red;">
												*
											</label>
											为必填
										</td>
									</tr>
									<tr>
										<td CLASS="tdEditLabel">
											姓&nbsp;&nbsp;名：
										</td>
										<td CLASS="tdEditContent">
											<input type="text" style="width: 80px;" />
											<label style="color: red;">
												*
											</label>
										</td>
									</tr>

									<tr>
										<td CLASS="tdEditLabel">
											所在班级：
										</td>
										<td CLASS="tdEditContent">
											<select name="ctname">
												<option>
													请选择班级名称
												</option>
												<%
													String sql = "select distinct classes from student";
													List<String> classesLists = DbUtil.query(sql);
													for (String s : classesLists) {
												%>
												<option>
													<%=s%>
												</option>
												<%
													}
												%>
											</select>
											<label style="color: red;">
												*
											</label>
										</td>
									</tr>

									<tr>
										<td CLASS="tdEditLabel">
											性&nbsp;&nbsp;别：
										</td>
										<td CLASS="tdEditContent">
											<input type="radio" name="sex" />
											男
											<input type="radio" name="sex" />
											女
											<label style="color: red;">
												*
											</label>
										</td>
									</tr>
									<tr>
										<td CLASS="tdEditLabel">
											年&nbsp;&nbsp;龄：
										</td>
										<td CLASS="tdEditContent">
											<input type="text" name="age" />
											<label style="color: red;">
												*
											</label>
										</td>
									</tr>
								</TABLE>
								<!-- 主输入域结束 -->
							</TD>
						</TR>
					</TBODY>
				</TABLE>
				<TABLE>
					<TR ALIGN="center">
						<TD COLSPAN="3" BGCOLOR="#EFF3F7">
							<INPUT TYPE="submit" CLASS="MyButton" VALUE="添加学生信息" />
							<input type="reset" />

						</TD>
					</TR>
				</TABLE>
			</form>
		</center>
	</body>
</html>
